package cas;

import java.util.concurrent.atomic.LongAdder;

public class LongAdderDemo {
    public static void main(String[] args) {
        // 创建两个LongAdder实例
        LongAdder adder1 = new LongAdder();
        adder1.add(10);
        LongAdder adder2 = new LongAdder();
        adder2.add(20);
        System.out.println("adder1的值为: " + adder1.sum());

        // 计算两个整数的和

        // 输出结果
//        System.out.println("两个整数的和为: " + sum);
    }
}